package com.haoyeteng.sxbd.modular.business.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 电子围栏表
 * </p>
 *
 * @author haoyeteng123
 * @since 2019-07-06
 */
@TableName("bus_ele_fence")
public class EleFence extends Model<EleFence> {

    private static final long serialVersionUID = 1L;

    /**
     * 电子围栏Id
     */
    @TableId(value = "ele_fence_id", type = IdType.AUTO)
    private Integer eleFenceId;
    /**
     * 围栏名称
     */
    @TableField("fence_name")
    private String fenceName;
    /**
     * 添加方式(1.地图绘制;2.点位导入;3.行政区花选取)
     */
    @TableField("create_type")
    private Integer createType;
    /**
     * 围栏描述
     */
    @TableField("fence_desc")
    private String fenceDesc;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 删除标记
     */
    @TableField("flag")
    @TableLogic
    private Integer flag;
    /**
     * 坐标点集合 非数据库字段
     */
    @TableField(exist = false)
    private List<Coordinate> details;

    public Integer getEleFenceId() {
        return eleFenceId;
    }

    public void setEleFenceId(Integer eleFenceId) {
        this.eleFenceId = eleFenceId;
    }

    public String getFenceName() {
        return fenceName;
    }

    public void setFenceName(String fenceName) {
        this.fenceName = fenceName;
    }

    public Integer getCreateType() {
        return createType;
    }

    public void setCreateType(Integer createType) {
        this.createType = createType;
    }

    public String getFenceDesc() {
        return fenceDesc;
    }

    public void setFenceDesc(String fenceDesc) {
        this.fenceDesc = fenceDesc;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public List<Coordinate> getDetails() {
        return details;
    }

    public void setDetails(List<Coordinate> details) {
        this.details = details;
    }

    @Override
    protected Serializable pkVal() {
        return this.eleFenceId;
    }

    @Override
    public String toString() {
        return "EleFence{" +
                "eleFenceId=" + eleFenceId +
                ", fenceName='" + fenceName + '\'' +
                ", createType='" + createType + '\'' +
                ", fenceDesc='" + fenceDesc + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", flag=" + flag +
                ", details=" + details +
                '}';
    }
}
